#include <stdio.h>
#include <string.h>
void array_find();
void stringLength();

int main()
{
	// 数组定义 dataType arrayName[length]
	// array_find(); // 查找数组内的某个值
	// stringLength(); // 输出字符串的长度
	char name[30] = {0};
	gets(name);

	printf("%s \n", name);
	return (0);
}

void array_find()
{
	int nums[8] = {10, 22, 30, 122, 2, 32, 67, 89};
	int user_num;
	int num_index = -1;
	int num;
	scanf("%d", &user_num);
	for (int i = 0; i < 8; i++)
	{
		if (nums[i] == user_num)
		{
			num_index = i;
			num = nums[i];
			printf("下标: %d, 值: %d \n", num_index, num);
			break;
		}
	}
}

void stringLength()
{
	char name[] = "zhangds";
	long name_length = strlen(name);
	printf("%ld \n", name_length);
}